//
//  InfomationCell.m
//  LoveTravel
//
//  Created by MS on 16-1-26.
//  Copyright (c) 2016年 Lemon. All rights reserved.
//

#import "InfomationCell.h"
static CGFloat h;
@implementation InfomationCell


/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

-(void)layoutSubviews
{
    [super layoutSubviews];
    [self.contentView setNeedsLayout];
    [self.contentView layoutIfNeeded];
     h = h + self.height;
    
    if (self.indexPath.section==2 && self.indexPath.row==1) {
        _cellTolHeight = h;
        h=0;
        
        [[NSNotificationCenter defaultCenter] postNotificationName:@"CellTolHeight" object:nil userInfo:@{@"CellTolHeight":@(_cellTolHeight)}];
    }
}


@end
